package com.stenio.fancat.mapper.shop;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stenio.fancat.domain.shop.FcOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FcOrderMapper extends BaseMapper<FcOrder> {
    List<FcOrder> selectByConditionPage(Pagination page, FcOrder act);

    void updatePart(FcOrder fcShop);

    void updateAll(FcOrder fcShop);

    FcOrder selectById(Integer id);

    /**
     * 根据业务id查询记录总数（）
     * @param id
     * @return
     */
    Integer selectCountByBid(Integer id);

    List<FcOrder> selectByOrderType(@Param("id") String id,@Param("status") Integer status);
}
